<?php
session_start();
include_once 'core/function.general.php';
checkIfLoggedIn();
include_once 'core/function.management.php';
include_once 'core/function.banner.php';
include_once 'core/function.mainmenu.php';

$manHandler = new manHandler();

if (isset($_GET['mode'])) {
    $mode = $_GET['mode'];
} else {
    $mode = "";
}

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">

<head>
	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
	<meta name="author" content="Galicz Miklós" />
    <meta name="copyright" content="Copyright 2011" />
    <meta name="Designer" content="Galicz Miklós" />
    <meta name="title" content="Ideális Ingatlan Iroda Kft." />
    <link rel="stylesheet" type="text/css" href="css/reset.css" />
    <link rel="stylesheet" type="text/css" href="css/general.css" />
    <link rel="stylesheet" type="text/css" href="css/management.css" />
    <link rel="shortcut icon" type="image/x-icon" href="imgs/favicon.ico" />
	<title>IRA-MS/Ügyvitel</title>
 </head>
 <body>
 <div id="wrapper">
    <?php
banner();
?>
   <div id="leftCol">
    <?php
mainMenu();
?>
 </div>
 <div id="rightCol">
    <?php
switch ($mode) {
    case "newcontract":
        if (!isset($_POST['conSubmit'])) {
            $manHandler->newContractTypeForm();
        } else {
            $manHandler->newContractTypeFormAction();
        }
        break;
    default:
        $manHandler->overview();
        break;
}

?>
</div>
 </div>
 </body>
 </html>